package ide.ccf.ccproject.data;

import java.util.List;

import org.eclipse.jface.viewers.IContentProvider;
import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;

public class TvContentProvider implements IStructuredContentProvider {

	public void dispose() {
		// TODO 自动生成的方法存根

	}

	public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
		// TODO 自动生成的方法存根
	}
	
	public Object[] getElements(Object inputElement)
	{
		if(inputElement instanceof List){
			return ((List) inputElement).toArray();
		}
		return new Object[0];
	}

}
